package com.amado.course01;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * @author wangyl-910
 * @description
 * @date 2018/3/29
 * @see
 */
public class IfDemo {
    public static void main(String[] args) throws IOException {
        while (true) {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            String str = null;
            System.out.print("Enter your value:");
            str = br.readLine();
            if ("1".equals(str)) {
                System.out.println("你是一位男性");
            }
            if ("0".equals(str)) {
                System.out.println("你是一位女性");
            }
            if("3".equals(str)){
                System.out.println("退出系统");
                System.exit(0);
            }
        }
    }
}
